import request from "@/utils/request"

export type QueryObject = {
  id: string | number,
  [propsName: string]: any
}

export type AnyObject = {
  [propsName: string]: any
}


export default {

  /*
   * @description:
   * url: https://m.ximalaya.com/m-revision/common/user/queryUserInfo/{anchorId}?userCountKeys=follower
   * @author 2023-08-20 18:22:06
   * @param: 
   * @return: 
   *
  */
  
  reqAnchorInfo(anchorId: number) {
    return request.get<any, AnyObject>(`/m-revision/common/user/queryUserInfo/${anchorId}?userCountKeys=follower`)
  },
  
  reqProduction(params: AnyObject) {
    return request.get<any, AnyObject>(`/m-revision/common/anchor/queryAnchorAlbumsByPage?anchorId=${params.anchorId}&page=${params.page}&pageSize=${params.pageSize}&asc=${params.asc}`)
  },

  /*
   * @description:
   * url: https://m.ximalaya.com/m-revision/common/album/queryAlbumCommentsByPage?page={page}&pageSize={pageSize}&albumId={albumId}&v={v}
   * @author 2023-08-20 23:43:32
   * @param: 
   * @return: 
   *
  */
  
  reqComment(params: AnyObject) {
    return request.get<any, AnyObject>(`/m-revision/common/album/queryAlbumCommentsByPage?page=${params.page}&pageSize=${params.pageSize}&albumId=${params.albumId}&v=${params.v}`)
  }
}